<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <f:loadBundle basename="UtilidadesSetup" var="utilidadesSetup"/>
        <div align="center">
            <ui:themeLinks binding="#{PortletPageDetalleGestion.themeLinks1}" id="themeLinks1"/>
            <ui:form binding="#{PortletPageDetalleGestion.detalleGestionForm}" id="detalleGestionForm">
                <table>
                    <tr>
                        <td align="center">
                            <!-- contenedorGridPanel -->
                            <h:panelGrid binding="#{PortletPageDetalleGestion.contenedorGridPanel}" id="contenedorGridPanel" style="text-align: center" width="100%">
                                <!-- gestionGridPanel -->
                                <h:panelGrid binding="#{PortletPageDetalleGestion.gestionGridPanel}" headerClass="headerClassDataTable" id="gestionGridPanel" style="text-align: center">
                                    <f:facet name="header">
                                        <h:outputText binding="#{PortletPageDetalleGestion.outputText7}" id="outputText7" value="Listado Detalle Gestión"/>
                                    </f:facet>
                                    <h:dataTable binding="#{PortletPageDetalleGestion.gestionDataTable}" headerClass="headerClassDataTable"
                                        id="gestionDataTable" rowClasses="rowClassWhite, rowClassBlue" value="#{PortletPageDetalleGestion.listGestiones}" var="currentRow" width="100%">
                                        <h:column binding="#{PortletPageDetalleGestion.nombreGestionColumn}" id="nombreGestionColumn">
                                            <f:facet name="header">
                                                <h:outputText binding="#{PortletPageDetalleGestion.outputText1}" id="outputText1" value="Gestión"/>
                                            </f:facet>
                                            <h:outputText binding="#{PortletPageDetalleGestion.outputText2}" id="outputText2" styleClass="outputTextDataTable" value="#{currentRow.nombreGestion}"/>
                                        </h:column>
                                        <h:column binding="#{PortletPageDetalleGestion.numeroEnviosColumn}" id="numeroEnviosColumn">
                                            <f:facet name="header">
                                                <h:outputText binding="#{PortletPageDetalleGestion.outputText3}" id="outputText3" value="Nro. Envíos"/>
                                            </f:facet>
                                            <h:panelGroup binding="#{PortletPageDetalleGestion.numeroEnviosGroupPanel}" id="numeroEnviosGroupPanel" style="display: block; text-align: right">
                                               <h:outputText binding="#{PortletPageDetalleGestion.outputText4}" id="outputText4"
                                                    rendered="#{!currentRow.greaterThanZero || (currentRow.greaterThanZero &amp;&amp; !SessionBeanEstadoOrdenProceso.generacionBaseCliente &amp;&amp; SessionBeanEstadoOrdenProceso.cliente)}"
                                                    styleClass="outputTextDataTable" value="#{currentRow.numeroEnviosFormat}"/>
                                                <h:commandLink action="#{PortletPageDetalleGestion.numeroEnviosLinkAction_action}"
                                                    binding="#{PortletPageDetalleGestion.numeroEnviosLinkAction}" id="numeroEnviosLinkAction" rendered="#{(currentRow.greaterThanZero &amp;&amp; SessionBeanEstadoOrdenProceso.generacionBaseCliente) || (currentRow.greaterThanZero &amp;&amp; !SessionBeanEstadoOrdenProceso.cliente)}">
                                                    <h:outputText binding="#{PortletPageDetalleGestion.linkAction1Text}" id="linkAction1Text"
                                                        styleClass="outputTextCommandLink" value="#{currentRow.numeroEnviosFormat}"/>
                                                    <h:inputHidden binding="#{PortletPageDetalleGestion.numeroEnviosHiddenField}" id="numeroEnviosHiddenField" value="#{currentRow.codigoGestion}"/>
                                                </h:commandLink>
                                            </h:panelGroup>
                                        </h:column>
                                        <h:column binding="#{PortletPageDetalleGestion.porcentajeTipoGestionColumn}" id="porcentajeTipoGestionColumn">
                                            <f:facet name="header">
                                                <h:outputText binding="#{PortletPageDetalleGestion.outputText5}" id="outputText5" value="Porcentaje"/>
                                            </f:facet>
                                            <h:panelGroup binding="#{PortletPageDetalleGestion.porcentajeGroupPanel}" id="porcentajeGroupPanel" style="display: block; text-align: right">
                                                <h:outputText binding="#{PortletPageDetalleGestion.outputText6}" id="outputText6"
                                                    styleClass="outputTextDataTable" value="#{currentRow.porcentajeFormat} %"/>
                                            </h:panelGroup>
                                        </h:column>
                                    </h:dataTable>
                                    <h:graphicImage binding="#{PortletPageDetalleGestion.imageGestiones}" id="imageGestiones"
                                        rendered="#{SessionBeanEstadoOrdenProceso.renderedGestionDetallesChart}" value="#{SessionBeanEstadoOrdenProceso.pathChartGestionDetalles}"/>
                                </h:panelGrid>
                                <!-- mensajeAlertGridPanel -->
                                <h:panelGrid binding="#{PortletPageDetalleGestion.mensajeAlertGridPanel}" id="mensajeAlertGridPanel" rendered="#{SessionBeanEstadoOrdenProceso.renderedMensajeAlertGridPanel}">
                                    <ui:alert binding="#{PortletPageDetalleGestion.mensajeAlert}" id="mensajeAlert"/>
                                </h:panelGrid>
                                <h:commandButton action="#{PortletPageDetalleGestion.volverButton_action}" binding="#{PortletPageDetalleGestion.volverButton}"
                                    id="volverButton" styleClass="button" value="VOLVER"/>
                            </h:panelGrid>
                        </td>
                    </tr>
                </table>
                <h:outputText binding="#{PortletPageDetalleGestion.outputText4}" id="outputText4"/>
            </ui:form>
        </div>
    </f:view>
</jsp:root>
